/**
 * Project Name:fire-industry-DM-center
 * File Name:BaseEntity.java
 * Package Name:com.firestone.bean.entity.elasticsearch.im
 * Date:2018年4月11日上午9:22:08
 *
*/

package com.firestone.bean.entity.elasticsearch.im;

import java.io.Serializable;
import java.util.List;
import java.util.Set;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.DateFormat;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import com.firestone.bean.entity.elasticsearch.nested.Category;
import com.firestone.bean.entity.elasticsearch.nested.Record;

/**
 * @Description: TODO(基础bean)
 * @author CAIYJ
 * @date 2018年4月11日 上午9:22:08
 */
public class BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    private String id;

    /**
     * @Fields SYS_add_time : TODO(添加时间)
     */
    @Field(type = FieldType.Date, format = DateFormat.custom, pattern = "yyyy-MM-dd HH:mm:ss")
    private String im_add_time;

    /**
     * @Fields SYS_add_time : TODO(更改时间)
     */
    @Field(type = FieldType.Date, format = DateFormat.custom, pattern = "yyyy-MM-dd HH:mm:ss")
    private String im_update_time;

    /**
     * @Fields records : TODO(修改记录)
     */
    @Field(type = FieldType.Nested)
    private List<Record> records;
    
    /**
     * @Fields category : TODO(区域关系嵌套结构)
     */
    @Field(type = FieldType.Nested)
    private Set<Category> category;
    
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getIm_add_time() {
        return im_add_time;
    }

    public void setIm_add_time(String im_add_time) {
        this.im_add_time = im_add_time;
    }

    public String getIm_update_time() {
        return im_update_time;
    }

    public void setIm_update_time(String im_update_time) {
        this.im_update_time = im_update_time;
    }

    public List<Record> getRecords() {
        return records;
    }

    public void setRecords(List<Record> records) {
        this.records = records;
    }

    public Set<Category> getCategory() {
        return category;
    }

    public void setCategory(Set<Category> category) {
        this.category = category;
    }
}
